/**
 * @author Philipp Hannemann & Christoph Lehnert
 */

package org.bonn.ooka.model;

public class Status {

	private String m_name;
	private int m_id;
	private EState m_state;
	
	public Status(ComponentPointer<?> ptr) {
		this.m_name= ptr.name();
		this.m_id = ptr.id();
		this.m_state = ptr.state();
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		
		sb.append(this.m_name);
		sb.append(" (");
		sb.append(this.m_id);
		sb.append(") -> ");
		sb.append(this.m_state);
		
		return sb.toString();
	}
}